package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.VoiceRoomProfitDO;
import com.qumitech.visualnovel.pubdef.dto.voiceroom.query.VoiceRoomProfitQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VoiceRoomProfitDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(VoiceRoomProfitDO record);

    int insertSelective(VoiceRoomProfitDO record);

    VoiceRoomProfitDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(VoiceRoomProfitDO record);

    int updateByPrimaryKey(VoiceRoomProfitDO record);

    VoiceRoomProfitDO getVoiceRoomProfitStatistic(@Param("roomId") String roomId,
                                                  @Param("startTime") String startTime,
                                                  @Param("endTime") String endTime);

    List<VoiceRoomProfitDO> getList(VoiceRoomProfitQueryDTO queryDTO);
    Integer getCount(VoiceRoomProfitQueryDTO queryDTO);
}